package com.mis.service.biz;

import com.jeecg.pageModel.DataGrid;
import com.jeecg.service.BaseServiceI;
import com.jeecg.pageModel.TreeNode;
import java.util.List;
import com.mis.entity.biz.OrderMainEntity;
import com.mis.page.biz.OrderMainPage;
import com.mis.page.biz.OrderCustomerPage;
import com.mis.entity.biz.OrderCustomerEntity;
import com.mis.page.biz.OrderProductPage;
import com.mis.entity.biz.OrderProductEntity;

/**   
 * @Title: Service
 * @Description: 订单表
 * @author zhangdaihao
 * @date 2014-12-08 17:21:54
 * @version V1.0   
 *
 */
public interface OrderMainServiceI extends BaseServiceI {

	/**
	 * 获得数据表格
	 * 
	 * @param bug
	 * @return
	 */
	public DataGrid datagrid(OrderMainPage orderMainPage);

	/**
	 * 添加
	 * 
	 * @param orderMainPage
	 */
	public void add(OrderMainPage orderMainPage);

	
	/**
	 * 添加一对多
	 * 
	 */
	public void addMain(OrderMainPage orderMainPage,List<OrderCustomerPage> orderCustomerList,List<OrderProductPage> orderProductList)  throws Exception ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void editMain(OrderMainPage orderMainPage,List<OrderCustomerPage> orderCustomerList,List<OrderProductPage> orderProductList)  throws Exception ;
	
	
	/**
	 * 修改
	 * 
	 * @param orderMainPage
	 */
	public void update(OrderMainPage orderMainPage) throws Exception;

	/**
	 * 删除
	 * 
	 * @param ids
	 */
	public void delete(String ids);

	/**
	 * 获得
	 * 
	 * @param OrderMain
	 * @return
	 */
	public OrderMainEntity get(OrderMainPage orderMainPage);
	
	
	/**
	 * 获得
	 * 
	 * @param obid
	 * @return
	 */
	public OrderMainEntity get(java.lang.String obid);
	
	/**
	 * 获取所有数据
	 */
	public List<OrderMainEntity> listAll(OrderMainPage orderMainPage);
	
	/**根据主表Key,查询子表明细：订单产品明细表*/
	public List<OrderCustomerPage> getOrderCustomerListByFkey(java.lang.String obid);
	/**根据主表Key,查询子表明细：订单产品明细*/
	public List<OrderProductPage> getOrderProductListByFkey(java.lang.String obid);

}
